Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add release/test workflows for github ci #37

Merged
merged 2 commits into from
Nov 12, 2023
Merged

Conversation

ShookLyngs
Copy link
Collaborator

@ShookLyngs ShookLyngs commented Nov 9, 2023

Changes

  • Add release workflow to publish packages in a clean environment instead of locally
  • Add test workflow to test the features of the packages in pull requests
  • Fix and update package.json info of root and the core package

Relevant todos

  • Set NPM_TOKEN
  • Set GITHUB_TOKEN

Extras

The turbo issue

@ahonn reported that after the pnpm run build:packages command, the lib folder only contains a few files instead of the full expected content. I identified that the issue was related to the malfunctioning of turbo run. The problem was resolved after I cleared the repository cache.

To prevent this from happening again, I have created the release workflow. Running it in the GitHub CI (a clean environment) should help prevent such issues. When a bump commit has been merged, we can trigger the release workflow manually.

Disable test by default

The test workflow should fail at this point because not all tests are ready to run in automation. Therefore, I believe the test workflow should be disabled by default until the tests are well organized/updated.

@ShookLyngs ShookLyngs added the enhancement New feature or request label Nov 9, 2023
@ShookLyngs ShookLyngs self-assigned this Nov 9, 2023
@ShookLyngs ShookLyngs merged commit 916ae49 into beta Nov 12, 2023
@ShookLyngs ShookLyngs deleted the chore-workflows branch December 26, 2023 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants